<include file="Public:header"/>
<div id="main-content">
	<div id="top-alert" class="fixed alert alert-error" style="display: none;">
		<button class="close fixed" style="margin-top: 4px;">&times;</button>
		<div class="alert-content">警告内容</div>
	</div>
	<div id="main" class="main">
		<div class="main-title-h">
			<span class="h1-title"><a href="{:U('Exchange/agent')}">C2C代理商管理</a> >></span>
            <span class="h1-title"><empty name="data">新增代理商<else/>编辑代理商</empty></span>
		</div>
		<div class="tab-wrap">
			<div class="tab-content">
				<form id="form" action="{:U('Exchange/agentEdit')}" method="post" class="form-horizontal" enctype="multipart/form-data">
					<div id="tab" class="tab-pane in tab">
						<div class="form-item cf">
							<table>
								<tr class="controls">
									<td class="item-label">代理商ID :</td>
									<td><input type="text" class="form-control input-10x" name="aid" value="{$data.aid}"></td>
									<td class="item-note">输入用户ID</td>
								</tr>
								<tr class="controls">
									<td class="item-label">真实姓名 :</td>
									<td><input type="text" class="form-control input-10x" name="name" value="{$data.name}"></td>
									<td class="item-note"></td>
								</tr>
								<tr class="controls">
									<td class="item-label">身份证号码 :</td>
									<td><input type="text" class="form-control input-10x" name="number" value="{$data.number}">
									</td>
									<td class="item-note">选填</td>
								</tr>
								
								<tr class="controls">
									<td class="item-label">银行卡号 :</td>
									<td><input type="text" class="form-control input-10x" name="bankcard" value="{$data.bankcard}">
									</td>
									<td class="item-note"></td>
								</tr>
								<tr class="controls">
									<td class="item-label">银行名称 :</td>
									<td><input type="text" class="form-control input-10x" name="bank" value="{$data.bank}">
									</td>
									<td class="item-note"></td>
								</tr>
								<tr class="controls">
									<td class="item-label">银行省份 :</td>
									<td><input type="text" class="form-control input-10x" name="bankprov" value="{$data.bankprov}">
									</td>
									<td class="item-note"></td>
								</tr>
								<tr class="controls">
									<td class="item-label">银行城市 :</td>
									<td><input type="text" class="form-control input-10x" name="bankcity" value="{$data.bankcity}">
									</td>
									<td class="item-note"></td>
								</tr>
								<tr class="controls">
									<td class="item-label">开户支行 :</td>
									<td><input type="text" class="form-control input-10x" name="bankaddr" value="{$data.bankaddr}">
									</td>
									<td class="item-note"></td>
								</tr>
								
								<tr class="controls">
									<td class="item-label">担保金 :</td>
									<td><input type="text" class="form-control input-10x" name="guarantee" value="{$data.guarantee}">
									</td>
									<td class="item-note"></td>
								</tr>
								<tr class="controls">
									<td class="item-label">担保金类型 :</td>
									<td><input type="text" class="form-control input-10x" name="guaranteetype" value="{$data.guaranteetype}">
									</td>
									<td class="item-note"></td>
								</tr>
								
								<tr class="controls">
									<td class="item-label">联系电话 :</td>
									<td><input type="text" class="form-control input-10x" name="moble" value="{$data.moble}">
									</td>
									<td class="item-note"></td>
								</tr>
								
								<tr class="controls">
									<td class="item-label">充值备注前缀 :</td>
									<td><input type="text" class="form-control input-10x" name="prefix" value="{$data.prefix}">
									</td>
									<td class="item-note">选填</td>
								</tr>
							
								<tr class="controls">
									<td class="item-label">排序 :</td>
									<td><input type="text" class="form-control input-10x" name="sort" value="{$data.sort}">
									</td>
									<td class="item-note"></td>
								</tr>
								
								<tr class="controls">
									<td class="item-label">状态 :</td>
									<td><select name="status" class="form-control input-10x">
										<option value="1" <eq name="data.status" value="1">selected</eq> >可用</option>
										<option value="0" <eq name="data.status" value="0">selected</eq> >禁用</option>
									</select></td>
									<td class="item-note"></td>
								</tr>
								<tr class="controls">
									<td class="item-label"></td>
									<td>
										<div class="form-item cf">
											<button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">提交
											</button>
											<a class="btn btn-return" href="{$Think.server.HTTP_REFERER}">返 回</a>
											<notempty name="data.id"><input type="hidden" name="id" value="{$data.id}"/>
											</notempty>
										</div>
									</td>
								</tr>
							</table>
						</div>
					</div>
				</form>
				<script type="text/javascript">
					//提交表单
					$('#submit').click(function () {
						$('#form').submit();
					});
				</script>
			</div>
		</div>
	</div>
</div>
<include file="Public:footer"/>
<block name="script">
	<script type="text/javascript" charset="utf-8">
		//导航高亮
		highlight_subnav("{:U('Exchange/agent')}");
		$('title').html('配置导航-'+'__WEBTITLE__');
	</script>
</block>